<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹窗示例</title>
    <script>
        function showAlert() {
            // 显示一个确认对话框
            let result = confirm("你确定要执行此操作吗？");
            if (result) {
                alert("你点击了确认按钮！");
            } else {
                alert("你点击了取消按钮！");
            }
        }
    </script>
</head>
<body>
<h1>弹窗示例</h1>
<!-- 点击此按钮会显示弹窗 -->
<button onclick="showAlert()">点击我显示弹窗</button>
</body>
</html>
